package com.tanggh.dao;

import java.util.List;

public interface GenericDao<M extends java.io.Serializable> {

	public Integer save(M model);

    public void saveOrUpdate(M model);
    
    public void update(M model);
    
    public void merge(M model);

    public void delete(Integer id);

    public void deleteObject(M model);

    public M get(Integer id);
    
    public int countAll();

    public List<M> listAll();
    
    public List<M> descListAll();
    
    public boolean exists(Integer id);
}
